package com.xiaoli.goodsserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoli.goodsserver.entity.Goods;
import com.xiaoli.goodsserver.mapper.GoodsMapper;
import com.xiaoli.goodsserver.service.IGoodsService;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {


    @Override
    public void updateStock(Long id, Integer changeStock) {
        this.baseMapper.updateStock(id, changeStock);
    }
}
